<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Storage;

class ServicePersonnel extends Model
{
	use HasDateTimeFormatter;
    protected $table = 'service_personnel';
    public $timestamps = true;

    public function setPicAttribute($value)
    {
        $this->attributes['pic'] = clearFullUrl($value);
    }
    public function getPicAttribute($value)
    {
        return createFullUrl($value);
    }

}
